<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>XiunoPHP 开发手册</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="keywords" content="XiunoPHP 开发手册" />
	<meta name="description" content="XiunoPHP 开发手册 " />
	<meta name="generator" content="Xiuno BBS" />
	<meta name="author" content="Xiuno Team" />
	<meta name="copyright" content="2008-2012 xiuno.com" />
	<meta name="MSSmartTagsPreventParsing" content="True" />
	<meta http-equiv="MSThemeCompatible" content="Yes" />
	<link href="common.css" type="text/css" rel="stylesheet" />
</head>
<body  class="bg1">
	<div class="width big">
		<h1>template.class.php</h1>
		<p>编译模板类，一般情况下您不需要单独 new 此类，请参看<a href="mvc_view.html">【MVC/View】</a>。</p>
		<p>如果需要单独使用：</p>
<pre>
&lt;?php
$conf = array (
	'view_path'=>'/data/view/',
	'tmp_path'=>'/data/tmp/',
	'static_url'=>'http://localhost/',
	'app_id'=>'bbs',
	'urlrewrite'=>0,
);
require_once 'xiunophp/lib/template.class.php';
$this->view = new template($conf);
$this->view->assign('page', $page);
$this->view->assign('userlist', $userlist);
$this->view->assign_value('totaluser', 123);
$this->view->display("user_login.htm");
?&gt;
</pre>
	</div>	
</body>
</html>
